package com.le.tester.webpage.lock;

/**
 * 描述：使用synchronized加上重量级别的锁
 */
public class CounterSyn {
    private int count;

    public void add(int i) {
        synchronized (this) {
            count += i;
        }
    }
}
